VERSION 5.00
Begin VB.Form FrmInDanhSachSVDoiTuong 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "In danh sach sinh vien lop - nganh"
   ClientHeight    =   1665
   ClientLeft      =   45
   ClientTop       =   375
   ClientWidth     =   6375
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1665
   ScaleWidth      =   6375
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton btnChonDoiTuong 
      Caption         =   "..."
      Height          =   375
      Left            =   5760
      TabIndex        =   2
      Top             =   360
      Width           =   375
   End
   Begin VB.TextBox txtTenDoiTuong 
      Height          =   375
      Left            =   1320
      Locked          =   -1  'True
      TabIndex        =   1
      Top             =   360
      Width           =   4335
   End
   Begin VB.CommandButton btnInDanhSach 
      Caption         =   "In danh sach"
      Height          =   435
      Left            =   4920
      TabIndex        =   0
      Top             =   960
      Width           =   1215
   End
   Begin VB.Label Label9 
      Caption         =   "Doi tuong"
      Height          =   255
      Left            =   240
      TabIndex        =   3
      Top             =   480
      Width           =   975
   End
End
Attribute VB_Name = "FrmInDanhSachSVDoiTuong"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private WithEvents formDoiTuong As FrmDiemDoiTuong
Attribute formDoiTuong.VB_VarHelpID = -1
Private m_sMaDoiTuong As String
Private m_objHSSV As clsHSSV
Private m_ObjADORst As ADODB.Recordset
Private ReportInDanhSachSVDoiTuong As RptInDanhSachSVDoiTuong

Private Sub formDoiTuong_EVENTChooseItem(ByVal madt As String, ByVal tendt As String)
    m_sMaDoiTuong = madt
    txtTenDoiTuong.Text = tendt
End Sub

Private Sub btnChonDoiTuong_Click()
    Set formDoiTuong = New FrmDiemDoiTuong
    formDoiTuong.EnableBtnChon = True
    formDoiTuong.Show 1, Me
End Sub

Private Sub btnInDanhSach_Click()
    Dim i As Integer
    Dim vLstViewItem As ListItem
    
    If txtTenDoiTuong.Text = "" Then m_sMaDoiTuong = ""
    
    Set m_objHSSV = New clsHSSV
    Set m_ObjADORst = m_objHSSV.InDanhSachDoiTuong(m_sMaDoiTuong)
    
    Set ReportInDanhSachSVDoiTuong = New RptInDanhSachSVDoiTuong
    ReportInDanhSachSVDoiTuong.DataMember = ""
    Set ReportInDanhSachSVDoiTuong.DataSource = Nothing
    Set ReportInDanhSachSVDoiTuong.DataSource = m_ObjADORst
    ReportInDanhSachSVDoiTuong.Show 1, Me
End Sub

